import { ColumnProps } from '~/library/components/ProTable/interface'
import { User } from '~/src/api/interface/user'

export const roleFrontColumn = reactive<ColumnProps<User.RoleFront>[]>([
  { type: 'selection', width: 80 },
  {
    sortable: true,
    prop: 'name',
    label: '名称',
    search: {
      el: 'input',
    },
  },
  {
    sortable: true,
    prop: 'maxDiscount',
    label: '最大折扣',
  },
  {
    sortable: true,
    prop: 'maxReduceAmount',
    label: '最大减免金额',
  },
  {
    sortable: true,
    prop: 'remark',
    label: '备注',
  },
])
